<?php
namespace api\test\model;

use think\Model;

Class SchoolModel extends Model
{
    protected $name = 'school';
    public function major ()
    {
        return $this->hasMany('MajorModel','school_id','id');
    }
}